
<div class="btn-group"><a href="<?php echo site_urlc('company/index');?>" class="btn"> <i class="fa fa-arrow-left"></i> <?php echo lang('back_list')?> </a></div>

<?php include_once 'inc_form_errors.php'; ?>

<div class="boxed">
    <h3> <i class="fa fa-pencil"></i> <?php echo lang('edit') ?> <span class="badge badge-success pull-right"><?php echo $title; ?></span></h3>
    <?php echo form_open(current_urlc(), array('class' => 'form-horizontal', 'id' => 'frm-edit')); ?>

    <div class="boxed-inner seamless">
        <div class="control-group">
            <label for="title" class="control-label">企业代表:</label>
            <div class="controls">
                <label><?php echo $it['uid'] ? get_account_name($it['uid']) : '' ?></label>
                <span class="help-inline"></span>
            </div>
        </div>
        <div class="control-group">
            <label for="title" class="control-label">公司名称:</label>
            <div class="controls">
                <label><?php echo $it['name']?></label>
                <span class="help-inline"></span>
            </div>
        </div>
        <div class="control-group">
            <label for="title" class="control-label">公司简称:</label>
            <div class="controls">
                <label><?php echo $it['short']?></label>
                <span class="help-inline"></span>
            </div>
        </div>
        <div class="control-group">
            <label for="title" class="control-label">公司简拼:</label>
            <div class="controls">
                <label><?php echo $it['initials'] ? $it['initials'] : pinyin($it['name'],'UTF8',true)?></label>
                <span class="help-inline"></span>
            </div>
        </div>
        <div class="control-group">
            <label for="title" class="control-label">股票代码:</label>
            <div class="controls">
                <label><?php echo $it['stock_code'] ? $it['stock_code'] : ''?></label>
                <span class="help-inline"></span>
            </div>
        </div>
        <div class="control-group">
            <label for="title" class="control-label">浏览数:</label>
            <div class="controls">
                <label><?php echo $it['scan']?></label>
                <span class="help-inline"></span>
            </div>
        </div>
        <div class="control-group">
            <label for="title" class="control-label">所在行业:</label>
            <div class="controls">
                <label><?php echo $it['industry'] ? get_ctype_titles($it['industry']) : '' ?></label>
                <span class="help-inline"></span>
            </div>
        </div>
        <div class="control-group">
            <label for="title" class="control-label">一句话介绍:</label>
            <div class="controls">
                <label><?php echo $it['short_desc'] ? $it['short_desc'] : ''  ?></label>
                <span class="help-inline"></span>
            </div>
        </div>
        <div class="control-group">
            <label for="title" class="control-label">企业简介:</label>
            <div class="controls">
                <label><?php echo $it['desc'] ? $it['desc'] : ''  ?></label>
                <span class="help-inline"></span>
            </div>
        </div>
        <div class="control-group">
            <label for="title" class="control-label">投资亮点:</label>
            <div class="controls">
                <label><?php echo $it['fund'] ? $it['fund'] : ''  ?></label>
                <span class="help-inline"></span>
            </div>
        </div>
        <div class="control-group">
            <label for="title" class="control-label">项目详述:</label>
            <div class="controls">
                <label><?php echo $it['pdesc'] ? $it['pdesc'] : '' ?></label>
                <span class="help-inline"></span>
            </div>
        </div>
        <div class="control-group">
            <label for="title" class="control-label">运营业绩:</label>
            <div class="controls">
                <label><?php echo $it['operation'] ? $it['operation'] : '' ?></label>
                <span class="help-inline"></span>
            </div>
        </div>
        <div class="control-group">
            <label for="title" class="control-label">团队:</label>
            <div class="controls">
                <label><?php echo $it['team'] ? $it['team'] :''  ?></label>
                <span class="help-inline"></span>
            </div>
        </div>
        <div class="control-group">
            <label for="title" class="control-label">是否价值梳理:</label>
            <div class="controls">
                <label><?php echo $it['is_combing'] ? '是' : '否'  ?></label>
                <span class="help-inline"></span>
            </div>
        </div>
        <div class="control-group">
            <label for="title" class="control-label">是否处理:</label>
            <div class="controls">
                <label><?php echo $it['status'] ? '是' : '否'  ?></label>
                <span class="help-inline"></span>
            </div>
        </div>
    </div>
</form>
</div>

<?php include_once 'inc_ui_media.php'; ?>
<script type="text/javascript">
    require(['jquery','adminer/js/ui','adminer/js/media'],function($,ui,media){
        ui.editor_create('editor_id');
        var company_photos = <?php echo json_encode($ps) ?>;
        media.show(company_photos,'photo');
        media.sort('photo');
    });
</script>
